//#include<bits/stdc++.h>
#include <iostream>
#include <string>
#include <queue>
using namespace std;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int n;
	cin >> n;
	priority_queue<long long, vector<long long>, greater<long long> >q;
	for (int i = 0;i < n;i++) {
		long long tmp;
		cin >> tmp;
		q.push(tmp);
	}
	for (int i = 0;i < n;i++) {
		cout << q.top() << " ";
		q.pop();
	}
	return 0;
}